import Taro from '@tarojs/taro'
import withWeapp from '@tarojs/with-weapp'
import Page from '../../component/page';

import ArticleScrollView from '../../component/ArticleScrollView';

// import './index.scss'

const app = Taro.getApp()

@withWeapp('Page')
class _C extends Taro.Component {
  state = {
    
  }
  init = () => {
    
  }

  back = () => {
    Taro.navigateBack();
  };

  render() {
    const { headerHeight, entryHeight } = app.globalData
    return (
      <View>
        <Page
          onClickLeftIcon={this.back}
          leftIconType="chevron-left"
          leftText="返回"
          title="喜欢的文章"
        />
        <View
        className="scroll-view"
        style={`height: ${entryHeight}px;margin-top: ${headerHeight + 5}px;background-color: #fff;`}
        >
          <ArticleScrollView api="/my_like" style={`height: ${entryHeight}px`} />
        </View>
      </View>
    )
  }
}

export default _C
